home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 June
/
EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso
/
netscape
/
skyppp.exe
/
WINSOCK
/
LOGIN.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-04-30
|
2KB
|
107 lines
#
# SkyLink login script v2.1 - by Luca Spada
#
##############################################################################
if ![load $username]
if [username "Inserisci la login PPP"]
save $username
end
end
if ![load $password]
if [password "Inserisci la password PPP"]
save $password
end
end
$modemsetup = "x3"
$userprompt = "ogin:"
$passprompt = "assword:"
%attempts = 10
#
#
#----------------------------------------------------------
#
# initialize modem
#
display \n\n"Inizializzo il modem..."
output "atz"\13
if ! [input 10 OK\n]
display "Il modem non risponde!"\n
abort
end
display "OK!"\n
#
# setup our modem commands
#
output "at"$modemsetup\13
input 10 OK\n
#
# send phone number
#
display "Mi sto collegando con SkyLink..."
%n = 0
repeat
if %n = %attempts
display "Non sono riuscito a collegarmi"\n
abort
end
######################################################
# Cambiare questa riga in base al numero di telefono #
######################################################
# Composizione numero in modalita' pulse (meccanica)
output "atdp284343"\13
# Composizione numero in modalita' toni (multifrequenza)
# output "atdt0332284343"\13
######################################################
%ok = [input 60 CONNECT]
%n = %n + 1
until %ok
input 10 \n
#
# wait till it's safe to send because some modem's hang up
# if you transmit during the connection phase
#
wait 30 dcd
display "OK!"\n
#
# now prod the terminal server
#
display "Connessione OK, entro in SkyLink..."
output \13
#
# wait for the username prompt
#
if [input 3 "name:"]
output "skylink"\13
end
input 30 $userprompt
output $username\13
#
# and the password
#
input 30 $passprompt
output $password\13
#
# we are now logged in
#
# input 30 $prompt
display \n\n
display "Connessione PPP attivata, iconifica Winsock e lancia"\n
display "le applicazioni Internet (es. Netscape)"\n\n
sleep 1